<?php

class Elective_Form_ElectiveGroup extends Sfs_Form
{
    public function init()
    {
        $this->addElement('text','group_name',array(
        'label' => 'group_name',
        'required' => true,
        'filters'    => array('StringTrim','StripTags'),
         'validators' => array('NotEmpty'),
        ));

        $this->addElement('text','subject_sn',array(
        'label' => 'subject_sn',
        'required' => true,
        'filters'    => array('StringTrim','StripTags'),
         'validators' => array('NotEmpty'),
        ));

        $this->addElement('select','teacher_course_sn',array(
        'label' => 'teacher',
        'required' => true,
        'filters'    => array('StringTrim','StripTags'),
         'validators' => array('NotEmpty'),
        ));

        $this->addElement('text','member',array(
        'label' => 'member',
        'required' => true,
         'size' => 5,
        'filters'    => array('StringTrim','StripTags'),
          'validators' => array('int')
        ));
//
//        $this->addElement('radio','open',array(
//        'label' => 'open',
//        'required' => true,
//        'filters'    => array('StringTrim','StripTags'),
//        'multiOPtions' => array(1=>'yes',0=>'no')
//        ));
    }
}